
#pragma once

#include "tower.h"

class Flag : public Tower {
public:
	Flag(const Point& pos);
	virtual ~Flag();

	virtual void init();
    virtual bool update (float ticks);

	virtual Node* getSprite() {
		return sprite;
	}

	int getSoldierPositionIndex();

	void onSoldierDied(int positionIndex);
    
public:
	FlagColor color;
	Point soldierPositions[SOLDIERS_PER_FLAG];
	bool soldierPositionFlags[SOLDIERS_PER_FLAG];
    
private:
	static int COLOR_SEED;

	Sprite* sprite;
};

